package com.lg.wechat.business.wxuser.service;
import java.util.List;
import com.lg.wechat.business.wxuser.entity.WxUser;

import me.chanjar.weixin.common.exception.WxErrorException;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dl
 * @since 2018-04-02
 */
public interface WxUserService extends IService<WxUser> {

	 /**
	 * <p>
	 * 新增服务
	 * </p>
	 */
    boolean save(WxUser wxUser);

     /**
	 * <p>
	 * 更新服务
	 * </p>
	 */
	boolean update(WxUser wxUser);
	
	 /**
	 * <p>
	 * 删除服务
	 * </p>
	 */
	boolean deleteById(Long id);
	
	 /**
	 * <p>
	 * 批量删除服务
	 * </p>
	 */
	boolean deleteByIds(List<Long> ids);
	
	
	/** 
	* @Description: 根据openid查询相关用户
	* @param @param openId
	* @param @return  
	* @return WxUser 
	* @throws 
	*/ 
	WxUser selectByOpenId(String openId);

	/** 
	* @Description: 给这些用户打标签
	* @param @param ids
	* @param @param gid
	* @param @return  
	* @return boolean 
	* @throws 
	*/ 
	boolean move(List<Long> ids, List<Long> gid) throws WxErrorException;

	List<WxUser> selectListByXml(WxUser entityWrapper);


}
